<?php



class PeopleMapBuilder implements MapBuilder {

	
	const CLASS_NAME = 'lib.model.openbravo.map.PeopleMapBuilder';

	
	private $dbMap;

	
	public function isBuilt()
	{
		return ($this->dbMap !== null);
	}

	
	public function getDatabaseMap()
	{
		return $this->dbMap;
	}

	
	public function doBuild()
	{
		$this->dbMap = Propel::getDatabaseMap(PeoplePeer::DATABASE_NAME);

		$tMap = $this->dbMap->addTable(PeoplePeer::TABLE_NAME);
		$tMap->setPhpName('People');
		$tMap->setClassname('People');

		$tMap->setUseIdGenerator(false);

		$tMap->addPrimaryKey('ID', 'Id', 'VARCHAR', true, 255);

		$tMap->addColumn('NAME', 'Name', 'VARCHAR', true, 255);

		$tMap->addColumn('APPPASSWORD', 'Apppassword', 'VARCHAR', false, 255);

		$tMap->addColumn('CARD', 'Card', 'VARCHAR', false, 255);

		$tMap->addForeignKey('ROLE', 'Role', 'VARCHAR', 'ROLES', 'ID', true, 255);

		$tMap->addColumn('VISIBLE', 'Visible', 'VARCHAR', true, 1);

		$tMap->addColumn('IMAGE', 'Image', 'BLOB', false, null);

	} 
} 